using System;
using System.ComponentModel.DataAnnotations;

namespace ERP.ProductionManage.Dtos
{
    /// <summary>
    /// 更新生产退料 DTO
    /// </summary>
    public class UpdateProductionReturnDto
    {
        /// <summary>
        /// 退料单名称
        /// </summary>
        [Required(ErrorMessage = "退料单名称不能为空")]
        [StringLength(30, ErrorMessage = "退料单名称长度不能超过30个字符")]
        public string ReturnName { get; set; }

        /// <summary>
        /// 生产工单
        /// </summary>
        [StringLength(30, ErrorMessage = "生产工单长度不能超过30个字符")]
        public string WorkOrder { get; set; }

        /// <summary>
        /// 仓库ID
        /// </summary>
        [Required(ErrorMessage = "仓库不能为空")]
        public int WarehouseId { get; set; }

        /// <summary>
        /// 退料日期
        /// </summary>
        [Required(ErrorMessage = "退料日期不能为空")]
        public DateTime ReturnDate { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(200, ErrorMessage = "备注长度不能超过200个字符")]
        public string? Remark { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public string Status { get; set; }
    }
} 